package br.ufmg.notservice.service;

import java.util.HashMap;
import java.util.Map;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class NotificationIntent extends Intent {

	private Map<String, Object> objs;

	public NotificationIntent() {
		super();
		init();
	}

	private void init() {
		objs = new HashMap<String, Object>();
	}

	public NotificationIntent(Context packageContext, Class<?> cls) {
		super(packageContext, cls);
		init();
	}

	public NotificationIntent(Intent o) {
		super(o);
		init();
	}

	public NotificationIntent(String action, Uri uri, Context packageContext,
			Class<?> cls) {
		super(action, uri, packageContext, cls);
		init();
	}

	public NotificationIntent(String action, Uri uri) {
		super(action, uri);
		init();
	}

	public NotificationIntent(String action) {
		super(action);
		init();
	}
	
	public void addElement(String key, Object value)
	{
		objs.put(key, value);
	}
	
	public Object getElement(String key)
	{
		return objs.get(key);
	}
}